package com.dsz.apiclientsdk;

import com.dsz.apiclientsdk.client.MyClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author dushangzhi
 */
@Configuration
@ConfigurationProperties(prefix = "dushangzhi.client")
@Data
@ComponentScan
public class ApiClientConfig {
    private String accessKey;
    private String secretKey;
    @Bean
    public MyClient myClient() {
        return new MyClient(accessKey, secretKey);
    }
}
